import request from '@/utils/request'

// 是否关注此用户
export function isFollowUsr (myId, userId) {
  return request({
    url: '/isFollowUser',
    method: 'get',
    params: {
      myId,
      userId
    }
  })
}

// 改变关注状态
export function changeFollowUser (isFollowUser, myId, userId) {
  return request({
    url: '/changeFollowUser',
    method: 'get',
    params: {
      isFollowUser,
      myId,
      userId
    }
  })
}

// 获取关注用户
export function getFollowUser (id) {
  return request({
    url: '/getFollowUser',
    method: 'get',
    params: { id }
  })
}

// 获取粉丝
export function getFun (id) {
  return request({
    url: '/getFun',
    method: 'get',
    params: { id }
  })
}
